projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6547cc6
)
[XEN][POWERPC] Fix debug=y build.
author
Hollis Blanchard
<hollisb@us.ibm.com>
Thu, 12 Apr 2007 18:05:04 +0000
(13:05 -0500)
committer
Hollis Blanchard
<hollisb@us.ibm.com>
Thu, 12 Apr 2007 18:05:04 +0000
(13:05 -0500)
When debug=y, we use -O0 for single-stepping. This breaks the force-link-error
trick used in __xchg(), so we provide a real function to link with.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/arch/powerpc/0opt.c
patch
|
blob
|
history
diff --git
a/xen/arch/powerpc/0opt.c
b/xen/arch/powerpc/0opt.c
index 6d85e63c9e6d43afdfad85342d8c0749c82f0fc5..e029ed11ebd4e236e20de633aeb5c577d83a784b 100644
(file)
--- a/
xen/arch/powerpc/0opt.c
+++ b/
xen/arch/powerpc/0opt.c
@@
-21,6
+21,12
@@
#include <xen/config.h>
#include <xen/lib.h>
+extern void __xchg_called_with_bad_pointer(void);
+void __xchg_called_with_bad_pointer(void)
+{
+ BUG();
+}
+
extern void __cmpxchg_called_with_bad_pointer(void);
void __cmpxchg_called_with_bad_pointer(void)
{